import request from '@/utils/request'

// 学校基本信息
export function schoolInfo() {
  return request({
    url: '/api/school/baseInfo',
    method: 'get',
    params: {  }
  })
}

// 年级人数统计
export function grade_stu_statistics() {
  return request({
    url: '/api/grade/grade_stu_statistics',
    method: 'get',
    params: {  }
  })
}

// 统计各班级人数
export function class_stu_statistics() {
  return request({
    url: '/api/classes/class_stu_statistics',
    method: 'get',
    params: {  }
  })
}

// 学习情况
export function grade_score() {
  return request({
    url: '/api/cockpit/study/grade_score',
    method: 'get',
    params: {  }
  })
}

// 班级-每个班级最高分及平均分数据
export function class_score(gradeName) {
  return request({
    url: '/api/cockpit/study/class_score',
    method: 'get',
    params: { gradeName }
  })
}

// 人员结构
export function personnelStructure() {
  return request({
    url: '/api/teacher/personnelStructure',
    method: 'get',
    params: {}
  })
}

// 职称分布
export function jobGrade() {
  return request({
    url: '/api/teacher/jobGrade',
    method: 'get',
    params: {}
  })
}

// 教师年龄组统计
export function ageGroup() {
  return request({
    url: '/api/teacher/ageGroup',
    method: 'get',
    params: {}
  })
}

// 学历分布
export function educationalQualification() {
  return request({
    url: '/api/teacher/educationalQualification',
    method: 'get',
    params: {}
  })
}

// 综合素质评价
export function category_submit_count() {
  return request({
    url: '/api/evaluate/category_submit_count',
    method: 'get',
    params: {}
  })
}

// 公寓入住统计
export function check_in_statistics() {
  return request({
    url: '/api/apartment/check_in_statistics',
    method: 'get',
    params: {}
  })
}

// 公寓床位统计
export function apartment_beds_statistics() {
  return request({
    url: '/api/apartment_beds_statistics',
    method: 'get',
    params: {}
  })
}

// 固定资产
export function assets_stat() {
  return request({
    url: '/api/assets/assets_stat',
    method: 'get',
    params: {}
  })
}

// 领导驾驶舱-教师教学评价等级分布
export function satisfi_distr() {
  return request({
    url: '/api/cockpit/teacher/eval/satisfi_distr',
    method: 'get',
    params: {}
  })
}

// 文印年份列表
export function year_list() {
  return request({
    url: '/api/wenyin/year_list',
    method: 'get',
    params: {}
  })
}

// 文印部门金额统计 dept_cost_stat
export function dept_cost_stat(startDate,endDate) {
  return request({
    url: '/api/wenyin/dept_cost_stat',
    method: 'get',
    params: {startDate,endDate}
  })
}

// 食堂就餐人数统计
export function person_statis() {
  return request({
    url: '/api/cockpit/canteen/person_statis',
    method: 'get',
    params: {}
  })
}


// 食堂管理-菜品排行
export function dish_top() {
  return request({
    url: '/api/cockpit/canteen/dish_top',
    method: 'get',
    params: {}
  })
}

// 教学质量评分排名
export function teaching_credit_ranking() {
  return request({
    url: '/api/teacher/teaching_credit_ranking',
    method: 'get',
    params: {}
  })
}